package com.yaaha.service;

import com.yaaha.mapper.MyMapper;
import com.yaaha.pojo.Department;
import com.yaaha.pojo.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyService {

    @Autowired
    MyMapper myMapper;

    public List<Department> getDepartments() {
        List<Department> list = myMapper.getDepartments();
        return list;
    }

    public List<Employee> getEmployeess() {
        List<Employee> list = myMapper.getEmployees();
        return list;
    }
}
